//import 'package:flutter_app_master/api/api.dart';
//import 'package:flutter_app_master/bean/login_entity.dart';
//import 'package:flutter_app_master/bean/update_send_order_state_entity.dart';
//import 'package:flutter_app_master/bean/validate_user_name_entity.dart';
//import 'package:flutter_app_master/generated/json/login_entity_helper.dart';
//import 'package:flutter_app_master/generated/json/update_send_order_state_entity_helper.dart';
//import 'package:flutter_app_master/generated/json/validate_user_name_entity_helper.dart';
//import 'package:flutter_app_master/utils/request_util.dart';
//
//class LoginService {
//  ///验证用户是否已注册
//  static Future<ValidateUserNameEntity> validateUserName(
//      String userID
//      ) async {
//    var response = await RequestUtil.getInstance()
//        .post(Api.validateUserName, data: {
//      'UserID': userID
//    });
//    return validateUserNameEntityFromJson(ValidateUserNameEntity(), response.data);
//  }
//  ///登录
//  static Future<LoginEntity> login(
//      String username,
//      String pwd
//      ) async {
//    var response = await RequestUtil.getInstance()
//        .post(Api.login, data: {
//      'userName': username,
//      'passWord':pwd,
//      'RoleType':7
//    });
//    return loginEntityFromJson(LoginEntity(), response.data);
//  }
//  ///验证码登录
//  static Future<LoginEntity> loginOnMessage(
//      String mobile,
//      String code,
//      String type,
//      String roleType
//      ) async {
//    var response = await RequestUtil.getInstance()
//        .post(Api.loginOnMessage, data: {
//      'mobile': mobile,
//      'code':code,
//      'type':type,
//      'roleType':roleType
//    });
//    return loginEntityFromJson(LoginEntity(), response.data);
//  }
////  ///微信绑定手机号
////  static Future<LoginEntity> wxReg(
////      String mobile,
////      String code,
////      String type,
////      String roleType,
////      String openid,
////      String unionid
////      ) async {
////    var response = await RequestUtil.getInstance()
////        .post(Api.wxReg, data: {
////      'mobile': mobile,
////      'code':code,
////      'type':type,
////      'roleType':roleType,
////      'openid':openid,
////      'unionid':unionid
////    });
////    return loginEntityFromJson(LoginEntity(), response.data);
////  }
////  ///微信登录
////  static Future<LoginEntity> wxRegister(
////      String mobile,
////      String code,
////      String type,
////      String roleType,
////      String openid,
////      String unionid
////      ) async {
////    var response = await RequestUtil.getInstance()
////        .post(Api.wxRegister, data: {
////      'mobile': mobile,
////      'code':code,
////      'type':type,
////      'roleType':roleType,
////      'openid':openid,
////      'unionid':unionid
////    });
////    return loginEntityFromJson(LoginEntity(), response.data);
////  }
//  ///短信
//  static Future<Item1Item2Entity> send(
//      String mobile,
//      String type,
//      String roleType,
//      ) async {
//    var response = await RequestUtil.getInstance()
//        .post(Api.send, data: {
//      'mobile': mobile,
//      'type':type,
//      'roleType':roleType,
//    });
//    return item1Item2EntityFromJson(Item1Item2Entity(), response.data);
//  }
//  ///注册
//  static Future<Item1Item2Entity> reg(
//      String mobile,
//      String code,
//      String type,
//      String roleType,
//      String pwd
//      ) async {
//    var response = await RequestUtil.getInstance()
//        .post(Api.reg, data: {
//      'mobile': mobile,
//      'code':code,
//      'type':type,
//      'roleType':roleType,
//      'passWord':pwd
//    });
//    return item1Item2EntityFromJson(Item1Item2Entity(), response.data);
//  }
//  ///忘记密码
//  static Future<Item1Item2Entity> forgetPassword(
//      String mobile,
//      String code,
//      String type,
//      String roleType,
//      String pwd
//      ) async {
//    var response = await RequestUtil.getInstance()
//        .post(Api.forgetPassword, data: {
//      'mobile': mobile,
//      'code':code,
//      'type':type,
//      'roleType':roleType,
//      'passWord':pwd
//    });
//    return item1Item2EntityFromJson(Item1Item2Entity(), response.data);
//  }
//}
